﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Aspose.Words;
using Aspose.Words.Fields;

namespace AntsCode.WordsExtensions
{
    public class MergeField
    {
        public MergeField()
        {
            this.Nodes = new List<Node>();
            this.Switches = new List<MergeFieldSwitch>();
            this.Merged = false;
        }

        public bool Merged
        {
            get;
            set;
        }

        public string Name
        {
            get;
            set;
        }

        public FieldStart Start
        {
            get;
            set;
        }

        public FieldEnd End
        {
            get;
            set;
        }

        public IEnumerable<Node> Nodes
        {
            get;
            set;
        }

        public IEnumerable<MergeFieldSwitch> Switches
        {
            get;
            set;
        }
    }
}
